* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


section {
    height: 100vh;
    overflow: hidden;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

label {
    position: relative;
    cursor: pointer;
    margin: 10px 0;
}

label input {
    appearance: none;
    display: none;
}

label span {
    display: block;
    width: 80px;
    height: 40px;
    background: #222;
    border-radius: 40px;
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 2px rgba(0, 0, 0, 0.2),
        inset 0 -px 1px rgba(0, 0, 0, 0.2);
}

label .indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom, #444, #222);
    border-radius: 50%;
    transform: scale(0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: 0.5s;
}

label input:checked ~ .indicator {
    left: 50%;
}

label .indicator::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: #f00;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 2px #f00,
        0 0 5px #f00,
        0 0 10px #f00,
        0 0 15px #f00,
        0 0 20px #f00,
        0 0 25px #f00,
        0 0 35px #f00;
}

label input:checked ~ .indicator::before {
      background: #0f0;
        box-shadow: 0 0 2px #0f0,
        0 0 5px #0f0,
        0 0 10px #0f0,
        0 0 15px #0f0,
        0 0 20px #0f0,
        0 0 25px #0f0,
        0 0 35px #0f0;
}













